import scala.collection.mutable.ArrayBuffer

object Hi {
  def main(args: Array[String]) {
    println("ok")
    val allResultCodes = Array("CD0422070000", "CD0422030102", "CD0422030103", "CD0422030000", "CD0422030100", "CD0422030101", "CD0422030106", "CD0422030104",
      "CD0422030105", "CD0422050106", "CD0422010000", "CD0422010002", "CD0422050100", "CD0422010001", "CD0422050101", "CD0422050102", "CD0422050103",
      "CD0422050104", "CD4", "CD0422000000", "CD0422020100", "CD0422050105", "CD0422030301", "CD0422020101", "CD0422080000", "CD0422030300", "CD0422020102",
      "CD0422020000", "CD0422020103", "CD0422020104", "CD0422020105", "CD0422010004", "CD0422030305", "CD0422010003", "CD0422030304", "CD0422010006",
      "CD0422030303", "CD0422010005", "CD0422030302", "CD0422030400", "CD0422030401", "CD0422040109", "CD0422040108", "CD0422050000", "CD0422040107",
      "CD0422040105", "CD0422040106", "CD0422040103", "CD0422040101", "CD0422040102", "CD0422040100", "CD0422040000", "CD0422060000", "CD0422060001",
      "CD0422060002", "CD0422060003", "DP1")
    val partResultCodes = Array(
      "CD0422040103", "CD0422040101", "CD0422040102", "CD0422040100", "CD0422040000", "CD0422060000", "CD0422060001", "CD0422060002", "CD0422060003", "DP1",
      "CD0422070000", "CD0422030102", "CD0422030103", "CD0422030000", "CD0422030100", "CD0422030101", "CD0422030106", "CD0422030104", "CD0422030105",
      "CD0422050106", "CD0422010000", "CD0422010002", "CD0422050100", "CD0422010001", "CD0422050101", "CD0422050102", "CD0422050103", "CD0422050104", "CD4",
      "CD0422000000", "CD0422020100", "CD0422050105", "CD0422030301", "CD0422020101", "CD0422080000", "CD0422030300", "CD0422020000", "CD0422020103",
      "CD0422020104", "CD0422020105", "CD0422010004", "CD0422030305", "CD0422010003", "CD0422030304", "CD0422010006", "CD0422030303", "CD0422030302",
      "CD0422010005", "CD0422030400", "CD0422030401", "CD0422040109", "CD0422040108", "CD0422050000", "CD0422040107", "CD0422040105", "CD0422040106")

    var strArray=new ArrayBuffer[String]()
    var strArray2=new ArrayBuffer[String]()

    allResultCodes.foreach(x => if(!partResultCodes.contains(x)) strArray+=(x+","))
    partResultCodes.foreach(x => if(!allResultCodes.contains(x)) strArray2+=(x+","))

    println(allResultCodes.size)
    println(partResultCodes.size)

    println("all 比 part 多的：")
    strArray.foreach(println _)


    println("part 比 all 多的：")
    strArray2.foreach(println _)
  }
}

